import request from "@/utils/request.js";

/**
 * 检测项目列表
 */
export function getProjectList() {
  return request.get("detection/project/list",{ noAuth : true});
}

/**
 * 提交检测记录
 * @param {Object} data
 */
export function createDetection(data) {
	return request.post("detection/detection/save", data)
}

/**
 * 支付
 * @param {Object} data
 */
export function payOfDetection(data){
	return request.post("detection/detection/submit",data,{ noAuth : true})
}

/**
 * 支付回调批量修改状态
 * @param {Object} data
 */
export function batchUpdatePayStatus(data){
	return  request.post("detection/detection/batchUpdatePayStatus", data,{ noAuth : true})
}

/**
 * 查询我的报告
 * @param {Object} data
 */
export function detectionList(data){
	return  request.get("detection/detection/list", data, {noAuth: true})
}